.\" Automatically generated by Pandoc 3.1.5
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "LAGRANGE" "1" "November 2022" "" ""
.hy
.SH NAME
.PP
lagrange - a beautiful Gemini client
.SH SYNOPSIS
.PP
\f[B]lagrange\f[R]
[options]\ [\f[I]URL\f[R]]\&...\ [\f[I]FILE\f[R]]\&...
.SH DESCRIPTION
.PP
Lagrange is a graphical client for the Gemini, Gopher, and Finger
protocols.
It offers modern conveniences familiar from web browsers, such as smooth
scrolling, inline image viewing, multiple tabs, visual themes, Unicode
fonts, and bookmarks.
.SH OPTIONS
.PP
When multiple URLs and/or local files are specified, they are opened in
separate tabs.
.TP
\f[B]-d\f[R], \f[B]--dump\f[R]
Print contents of URLs/paths to stdout and quit.
.TP
\f[B]-I\f[R], \f[B]--dump-identity\f[R] \f[I]ARG\f[R]
Use identity ARG with \f[B]--dump\f[R].
ARG can be a complete or partial client certificate fingerprint or
common name.
.TP
\f[B]-E\f[R], \f[B]--echo\f[R]
Print all internal application events to stdout.
Useful for debugging.
.TP
\f[B]--help\f[R]
List the available command line options.
.TP
\f[B]--replace-tab\f[R] URL
Open a URL, replacing contents of the active tab.
Without this option, any URLs on the command line are opened in new
tabs.
.TP
\f[B]-u\f[R], \f[B]--url-or-search\f[R] \f[I]URL\f[R] | \f[I]TEXT\f[R]
Open a URL, or make a search query with given text.
This only works if the search query URL has been configured.
.TP
\f[B]-U\f[R], \f[B]--user\f[R] \f[I]DIR\f[R]
Store user data in the directory DIR instead of the default location.
.TP
\f[B]-V\f[R], \f[B]--version\f[R]
Output the version number.
.SS Window options:
.TP
\f[B]-h\f[R], \f[B]--height\f[R] \f[I]N\f[R]
Set initial window height to \f[I]N\f[R] pixels.
.TP
\f[B]--prefs-sheet\f[R]
Open Preferences as a sheet inside the active window.
.TP
\f[B]--sw\f[R]
Disable hardware-accelerated rendering.
.TP
\f[B]-w\f[R], \f[B]--width\f[R] \f[I]N\f[R]
Set initial window width to \f[I]N\f[R] pixels.
.SS Control options:
.PP
These options are used to control the currently running Lagrange
instance via the command line.
.TP
\f[B]--close-tab\f[R]
Close the current tab.
.TP
\f[B]-L\f[R], \f[B]--list-tab-urls\f[R]
Print the URLs of open tabs to stdout.
If the app isn\[cq]t running, nothing is printed.
.TP
\f[B]--new-tab\f[R] [\f[I]URL\f[R]]
Open a new tab.
If the URL argument is omitted, the user\[cq]s homepage is opened.
.TP
\f[B]--tab-url\f[R]
Print the URL of the active tab.
.TP
\f[B]-t\f[R], \f[B]--theme\f[R] [\f[I]ARG\f[R]]
Change the current UI color theme to ARG (\[lq]black\[rq],
\[lq]dark\[rq], \[lq]light\[rq], \[lq]white\[rq]).
.SH ENVIRONMENT
.TP
\f[V]LAGRANGE_OVERRIDE_DPI\f[R]
Override the autodetected screen DPI with a user-provided value.
Some window systems and/or monitors may not provide an appropriate DPI
value, so this enables further tuning the UI scaling in addition to the
\[lq]UI scale factor\[rq] found in Preferences.
.SH FILES
.PP
User-specific files such as bookmarks and navigation history are stored
in the following operating system dependent locations:
.IP \[bu] 2
Windows:
\[lq]C:\[rs]Users\[rs]Name\[rs]AppData\[rs]Roaming\[rs]fi.skyjake.Lagrange\[rq]
.IP \[bu] 2
macOS: \[lq]\[ti]/Library/Application Support/fi.skyjake.Lagrange\[rq]
.IP \[bu] 2
Other: \[lq]\[ti]/.config/lagrange\[rq]
.PP
Use the \f[B]--user\f[R] option to store user data in a custom location.
.PP
The directory contains:
.TP
\f[B]bindings.txt\f[R]
Customized key bindings.
.TP
\f[B]bookmarks.ini\f[R]
Bookmarks in TOML format.
.TP
\f[B]feeds.txt\f[R]
State of subscribed feeds: all the known entries and latest update
timestamps.
.TP
\f[B]fonts.ini\f[R]
Custom fonts to load at launch.
.TP
\f[B]idents.lgr\f[R]
Information about identities.
.TP
\f[B]idents/\f[R]
Subdirectory containing client certificates and private keys in PEM
format.
.TP
\f[B]modmap.txt\f[R]
Customized keyboard modifier mapping.
.TP
\f[B]mimehooks.txt\f[R]
Configuration of external programs to filter page contents depending on
MIME type.
.TP
\f[B]palette.txt\f[R]
Colors of the UI palette.
.TP
\f[B]prefs.cfg\f[R]
User\[cq]s preferences.
This is a list of UI events that gets executed at launch (cf.\ output of
\f[B]--echo\f[R]).
.TP
\f[B]state.lgr\f[R]
Serialized UI state, specifying open tabs and sidebar state.
.TP
\f[B]sitespec.ini\f[R]
Site-specific preferences in TOML format.
.TP
\f[B]trusted.2.txt\f[R]
Fingerprints of trusted server certificates.
.TP
\f[B]visited.2.txt\f[R]
List of visited URLs with timestamps.
.SH STANDARDS
.IP \[bu] 2
Gemini Protocol
Specification (https://gemini.circumlunar.space/docs/specification.gmi)
.IP \[bu] 2
Gempub Specification (https://codeberg.org/oppenlab/gempub)
.IP \[bu] 2
RFC 1436: The Internet Gopher
Protocol (https://datatracker.ietf.org/doc/html/rfc1436)
.IP \[bu] 2
RFC 1288: The Finger User Information
Protocol (https://datatracker.ietf.org/doc/html/rfc1288)
.SH SEE ALSO
.PP
Open \[lq]about:help\[rq] in the application to view the complete Help
page.
.SH AUTHORS
Jaakko Keränen (jaakko.keranen\[at]iki.fi).
